Skip to content

Refactor: Replace package.json requires with extension context info #5071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

JustinGrote
Copy link
Collaborator

@JustinGrote JustinGrote commented Oct 29, 2024

PR Summary

The package.json info is now available in the extension context, this avoids a round trip. Note there is no validation on the import of the information (there wasn't before either), but it's very unlikely to surface a null or undefined, or have that affect operation of the extension (famous last words).

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • [NA] PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@JustinGrote JustinGrote self-assigned this Oct 29, 2024
@JustinGrote JustinGrote changed the title Replace require with extension handling Refactor: Replace package.json requires with extension context info Oct 29, 2024
@JustinGrote JustinGrote marked this pull request as ready for review October 29, 2024 17:34
@JustinGrote JustinGrote enabled auto-merge October 29, 2024 17:34
@JustinGrote JustinGrote added this pull request to the merge queue Oct 29, 2024
Copy link
Member

@andyleejordan andyleejordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thanks!

Merged via the queue into main with commit 64f32d3 Oct 29, 2024
7 checks passed
@JustinGrote JustinGrote deleted the refactor/packageJsonRefs branch October 29, 2024 18:57
@JustinGrote
Copy link
Collaborator Author

Quick note that this API is also available in 1.82 which is what Azure Data Studio is on so that should be fine but I haven't directly tested it.
https://github.com/microsoft/vscode/blob/release/1.82/src/vscode-dts/vscode.d.ts#L7077

@andyleejordan
Copy link
Member

@JustinGrote we no longer have to support ADS and I bumped our engine to 1.94!

@andyleejordan andyleejordan added the Issue-Enhancement A feature request (enhancement). label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Startup Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants